<template>
    <div class="header">
        <div class="header-left">
            <span class="iconfont fanhui"></span>
        </div>
        <div class="header-input">
            <span class="iconfont">&#xe632;</span>
            输入城市/景点/游玩主题/游玩主题
        </div>
        <router-link to="/city">
            <div class="header-right">
                {{this.$store.state.city}}
                <span class="iconfont">&#xe629;</span>
            </div>
        </router-link>
    </div>
</template>

<script>
  export default {
    name: 'indexHeader'
  }
</script>

<style lang="stylus" type="text/stylus" scoped>
    @import "~assets/style/param.styl"
    .header
        display:flex
        line-height:.86rem
        background:$themeColor
        color:#fff
        .header-left
            width:.64rem
            folat:left
            text-align: center;
        .header-input
            flex:1
            line-height:.64rem
            height:.64rem
            margin-top:.12rem
            margin-left:.2rem
            border-radius:.1rem
            color:#ccc
            background:#fff
            width 5rem
            padding-left .2rem
        .header-right
            width :1.24rem
            float:right
            text-align :center
            color #fff
</style>
